home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Navigation Services SDK / Examples / SimpleText / SimpleText ƒ / NavigationServicesSupport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-16  |  1.4 KB  |  41 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        NavigationServicesSupport.h
  3.  
  4.     Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  5.  
  6. */
  7.  
  8. #include <Files.h>
  9. #include <Navigation.h>
  10.  
  11.  
  12. #define dontSaveChanges    3
  13.  
  14.  
  15.  
  16. OSStatus OpenFileDialog(OSType applicationSignature, short numTypes, OSType typeList[], NavEventProcPtr eventProc, FSSpec* fileSpec, OSType* fileType);
  17. // Displays the NavGet dialog and returns the selected file location.
  18. // To enable multiple document opening through AppleEvents pass NULL as the fileSpec anf fileType.
  19.  
  20.  
  21.  
  22. short ConfirmSaveDialog(StringPtr documentName, Boolean quitting, NavEventProcPtr eventProc);
  23. // Displays the save confirmation dialog anmd returns {ok, cancel, dontSaveChanges}
  24.  
  25.  
  26.  
  27. OSStatus SaveFileDialog(StringPtr fileName, OSType filetype, OSType fileCreator, NavEventProcPtr eventProc, FSSpec* fileSpec, Boolean* stationery, Boolean* replacing, NavReplyRecord* reply);
  28. // Displays the NavPut dialog and returns the selected file location and replacing info.
  29.  
  30.  
  31.  
  32. OSStatus CompleteSave(const FSSpec* fileSpec, NavReplyRecord* reply);
  33. // Call this routine after savibg a document passing back the fileSpec and reply returned by SaveFileDialog
  34. // This call performs any file tranlation needed and disposes the reply
  35.  
  36.  
  37.  
  38. pascal void MyEventProc(const NavEventCallbackMessage callBackSelector, 
  39.                         NavCBRecPtr callBackParms, 
  40.                         NavCallBackUserData callBackUD);
  41. // Callback to handle event passing betwwn the navigation dialogs and the applicatio